<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trade_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trade_no" data-rule="required" class="form-control form-control" name="row[trade_no]" type="text" value="{$row.trade_no}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_username" data-rule="required" class="form-control form-control" name="row[buy_username]" type="text" value="{$row.buy_username}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_trade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_trade_id" data-rule="required" class="form-control form-control" name="row[buy_trade_id]" type="text" value="{$row.buy_trade_id}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_num" data-rule="required" class="form-control form-control" name="row[buy_num]" type="number" value="{$row.buy_num}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_username" data-rule="required" class="form-control form-control" name="row[sell_username]" type="text" value="{$row.sell_username}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_trade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_trade_id" data-rule="required" class="form-control form-control" name="row[sell_trade_id]" type="text" value="{$row.sell_trade_id}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_num" data-rule="required" class="form-control form-control" name="row[sell_num]" type="number" value="{$row.sell_num}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Exch_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exch_rate" data-rule="required" class="form-control form-control" step="0.01" name="row[exch_rate]" type="number" value="{$row.exch_rate}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Finishtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-finishtime" data-rule="required" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[finishtime]" type="text" value="{$row.finishtime|datetime}" disabled="">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Action')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-action" data-rule="required" class="form-control form-control" name="row[action]" type="text" value="{$row.action}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Symbol')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-symbol" data-rule="required" class="form-control form-control" name="row[symbol]" type="text" value="{$row.symbol}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tosymbol')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tosymbol" data-rule="required" class="form-control form-control" name="row[tosymbol]" type="text" value="{$row.tosymbol}" disabled="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control form-control" size="50" name="row[image]" type="text" value="{$row.image}" disabled="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!-- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} disabled="" /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>



    {eq name="row.status" value='dispute'}

        {eq name="row.disputestatus" value='waitting'}
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">仲裁订单超时:</label>
                <div class="col-xs-12 col-sm-8">
                    <a href="javascript:;" type="button" data-ids="{$row.id}" class="btn btn-success btn-embossed opdispute" data-res="cancel">撤销匹配</a>
                </div>
            </div>
        {/eq}
        {eq name="row.disputestatus" value='affirmsell'}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">仲裁买家打款信息错误:</label>
            <div class="col-xs-12 col-sm-8">
                <a href="javascript:;" type="button" data-ids="{$row.id}" class="btn btn-success btn-embossed opdispute" data-res="success">卖家胜诉</a>
                <a href="javascript:;" type="button" data-ids="{$row.id}" class="btn btn-default btn-embossed opdispute" data-res="defeated">买家胜诉</a>
            </div>
        </div>
        {/eq}
        {eq name="row.disputestatus" value='affirmbuy'}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">仲裁卖家超时收款:</label>
            <div class="col-xs-12 col-sm-8">
                <a href="javascript:;" type="button" data-ids="{$row.id}" class="btn btn-success btn-embossed opdispute" data-res="success">卖家胜诉</a>
                <a href="javascript:;" type="button" data-ids="{$row.id}" class="btn btn-default btn-embossed opdispute" data-res="defeated">买家胜诉</a>
            </div>
        </div>
        {/eq}
    {/eq}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
